const arr = [{ id: 1, name: "zhangsan" }];

console.log(arr.some((item) => item.id === 2));
